package com.tiancheng.trade.payment.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tiancheng.trade.payment.model.PaymentFlowDetailSettle;
import com.tiancheng.trade.payment.model.RefundSettle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;
import java.util.Set;

/**
 * 退款结算 mapper
 */
@Repository
public interface RefundSettleMapper extends TYBaseMapper<RefundSettle> {

    IPage<RefundSettle> listWaitSettles(@Param("expectSettleDate") LocalDate expectSettleDate,
                                        @Param("payChannel") String payChannel, Page<Object> objectPage);

    /**
     * 已完成的结算退款单
     *
     * @param refundSettleIds
     * @return
     */
    List<RefundSettle> completedSettles(@Param("settleIds") Set<Long> refundSettleIds);
}
